import _fetch from './request'

function getCodeApi(data){
  return _fetch({
    url:'/sendsms',
    method:'post',
    data:data
  })
}
function toRegister(data) {
    return _fetch({
        url:"/register",
        method:'post',
        data
    })
}
export {getCodeApi,toRegister}